<template>
  <div>
   <h2> 我是一个测试组件</h2>
    <van-button type="primary" @click="totest">去首页</van-button>
    <van-button type="info" @click="toBuy">去值得买</van-button>
    <van-button type="info" @click="toOrder">去订单页</van-button>
    <van-button type="info">信息按钮</van-button>
    <van-button type="default">默认按钮</van-button>
    <van-button type="warning">警告按钮</van-button>
    <van-button type="danger">危险按钮</van-button>
    <Cart1/>
    
  </div>
</template>

<script>
  import Cart1 from '@/pages/Cart'
  export default {
    name:'Test',
    components:{
      Cart1
    },
    methods:{
      totest(){
      this.$router.push('/home')
    } ,
    // 测试去值得买
    toBuy(){
      this.$router.push('/buy')
    },
    toOrder(){
      this.$router.push('/order')
    }


    }
  }
</script>

<style lang="less" scoped>
  
</style>